package top.jbxie.raft.util;

import top.jbxie.raft.entity.LogEntry;

/**
 * @see top.jbxie.raft.entity.LogEntry;
 */
public interface LogModule {
    void write(LogEntry logEntry);

    LogEntry read(Long index);

    void removeOnStartIndex(Long startIndex);

    LogEntry getLast(); //获取最后一条日志条目

    Long getLastIndex();
}
